package com.pojo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class Student {
    private int id;
    private String Name;
    private int age;
    private String livearea;
    public Student()
    {

    }
    public Student(int id, String name, int age, String livearea) {
        this.id = id;
        Name = name;
        this.age = age;
        this.livearea = livearea;
    }
    public Student(int id)
    {
        this.id=id;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return Name;
    }

    public void setName(String name) {
        Name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getLivearea() {
        return livearea;
    }

    public void setLivearea(String livearea) {
        this.livearea = livearea;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", Name='" + Name + '\'' +
                ", age=" + age +
                ", livearea='" + livearea + '\'' +
                '}';
    }
}

